<template>
  <div class="x-cameraitem">
    <div v-for="(item,index) in listData" :key="index" class="camera-ctx">
      <div class="ctx-pic">
        <img class="pic" :src="item.url |filterimgsrc" />
      </div>
      <div class="ctx-txt">
        <div class="name">{{item.name}}</div>
        <div class="time">{{item.time}}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "xcameraitem",
  data() {
    return {
      listData: [
        {
          url: require("@/assets/images/test/1.jpg"),
          name: "新丰苑二期南二门发现刑满释放人员",
          time: "2019-10-19  16:36:42"
        },
        {
          url: require("@/assets/images/test/1.jpg"),
          name: "新丰苑二期南二门发现刑满释放人员",
          time: "2019-10-19  16:36:42"
        }
      ]
    };
  }
};
</script>
<style lang="less" scoped>
.x-cameraitem {
  width: 100%;
  height: 100%;
  .camera-ctx {
    width: 100%;
    height: 50%;
    padding: 10px 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-content: center;
    .ctx-pic {
      width: 8.5rem;
      height: 100%;
      .pic {
        width: 100%;
        height: 100%;
      }
    }
    .ctx-txt {
      width: calc(100% - 8.5rem);
      padding-left: 15px;
      box-sizing: border-box;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: normal;
      color: #fff;
      .name {
        width: 100%;
        font-size: 0.7rem;
        text-align: left;
      }
      .time {
        text-align: left;
        font-size: 0.6rem;
        margin-top: 0.5rem;
      }
    }
  }
}
</style>
